﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="EntyTypeEdit.aspx.cs" Inherits="HQWeb.SysManage.EntyTypeManage.EntyTypeEdit" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <link href="../../Styles/Site.css" rel="Stylesheet" type="text/css" />
    <script type="text/javascript" language="javascript">
        function CheckData() {
            var varNmae = document.getElementById("txtName");
            if (varNmae.value.replace(/(\s*$)/g, "") == "") {
                alert("元素分类不能为空！");
                varNmae.focus();
                return false;
            }
            return true;
        }

        function MaterialSelect() {
            var str = window.showModalDialog("../../Resources/MaterialTreeFrame.htm", " ", "dialogWidth=400px;dialogHeight=600px");
            if (str != undefined) {
                document.getElementById("PID").value = str.id;
                document.getElementById("txtPIdHid").value = str.id;
            }
        }
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <table width="98%">
            <tr>
                <td colspan="4" class="title">
                    <asp:Label runat="server" ID="labTitle" Text="元素分类信息维护"></asp:Label>
                </td>
            </tr>
            <tr>
                <td align="right">
                    元素分类名 ：
                </td>
                <td  colspan="3">
                    <asp:TextBox runat="server" ID="txtName" Style="margin-left: 0px"></asp:TextBox><span style="color: Red">*</span>
                </td>
            </tr>
            <tr>
                <td align="right">
                    上级类型名：
                </td>
                <td>
                    <asp:DropDownList ID="PID" runat="server" Width="156px">
                    </asp:DropDownList><span style="color: Red">*</span>&nbsp;&nbsp;<input type="button" value="选 择" id="materialSelect" onclick="MaterialSelect()" />
                </td>
                <td align="right">
                    所属分类：
                </td>
                <td>
                    <asp:DropDownList ID="ddl_type" runat="server" Width="156px">
                    </asp:DropDownList><span style="color: Red">*</span>
                </td>
            </tr>
            <tr>
                <td align="right" class="style3">
                    备&nbsp; 注 ：
                </td>
                <td colspan="3">
                    <asp:TextBox TextMode="MultiLine" runat="server" ID="txtremark" Width="50%" Style="margin-left: 0px"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <%--                <td class="style1">
                    &nbsp;
                </td>--%>
                <td>&nbsp;</td>
                <td colspan="3">
                    <asp:Button ID="btnSubmit" runat="server" Text="提 交" OnClick="btnSend_Click"
                        OnClientClick=" return CheckData()" />&nbsp; &nbsp;
                     <input id="btnCalcel" value="返 回" type="button" onclick="location='ElementTypeList.aspx?pid=' + document.getElementById('PIdHid').value" />
                </td>
            </tr>
            <tr>
                <td colspan="4" align="center">
                    <br />
                    <br />
                </td>
            </tr>
        </table>
    </div>
<%--    <asp:TextBox ID="txtIdHid" runat="server" Style="visibility: hidden"></asp:TextBox><!--传递唯一标识-->
    <asp:TextBox ID="txtPIdHid" runat="server" Style="visibility: hidden"></asp:TextBox><!--传递上级记录标识-->
    <asp:TextBox ID="txtSign" runat="server" Style="visibility: hidden"></asp:TextBox><!--传递操作-->--%>
    <asp:HiddenField ID="IdHid" runat="server" />
    <asp:HiddenField ID="PIdHid" runat="server" />
    <asp:HiddenField ID="Sign" runat="server" />
    </form>
</body>
</html>
